package com.atguigu.spzx.manager.service;

import com.atguigu.spzx.manager.vo.category.CategoryQueryRespVo;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.util.List;

public interface CategoryService {
    /**
     * 分类列表，每次只查询一层数据
     * @param parentId
     * @return
     */
    List<CategoryQueryRespVo> getCategoryListByParentId(Long parentId);

    /**
     * 导出数据
     * @param response
     */
    void exportCategoryList(HttpServletResponse response);

    /**
     * 导入数据
     * @param file
     */
    void importCategoryList(MultipartFile file);
}
